package com.example.communist_app_api.db.dao;

import com.example.communist_app_api.db.pojoDto.UserSoncomment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserSoncommentDao {

    List<UserSoncomment> getUserComment(Integer id);

    int insertUserComment(@Param("userId")Integer userId,@Param("id")Integer id,@Param("context")String context);

    boolean deleteUserComment(Integer id);

    int isInsertUserComment(@Param("userId")Integer userId,@Param("id")Integer id,@Param("content")String context,@Param("auditorId")Integer auditorId);

    List<UserSoncomment> getUnmoderatdeComment();

    boolean reviewComments(@Param("userId")Integer userId,@Param("id")Integer id);

    List<UserSoncomment> getAllComment();
}
